package com.yuedou.jylt.constant;

import android.Manifest;
import android.os.Environment;

/**
 * Author: Mark
 * Data:2018/6/11
 */
public class Const {
    public static final String BASE_URL = "https://api.sdyuedou.com/ydapi/";
    public static final String APP_VERSION_URL = "https://api.sdyuedou.com/ydapi/device/appVersion";
//    public static final String BASE_URL = "http://192.168.1.51:7777/api/";

    public static final int READ = 1;
    public static final int REFRESH = 0;
    public static final int LOAD = 1;
    // 所需的全部权限
    public static final String[] PERMISSIONS = new String[]{
            Manifest.permission.READ_PHONE_STATE,
//            Manifest.permission.READ_EXTERNAL_STORAGE, // 读
//            Manifest.permission.WRITE_EXTERNAL_STORAGE, // 写
//            Manifest.permission.ACCESS_COARSE_LOCATION, // 定位
//            Manifest.permission.ACCESS_FINE_LOCATION,
//            Manifest.permission.CALL_PHONE, // 电话
//            Manifest.permission.RECORD_AUDIO // 录音
//            Manifest.permission.SEND_SMS  // 信息
    };
    public static final int POSITION_AREA = 0; // 地区的位置
    public static final int POSITION_KIND = 1; // 工种的位置
    public static final int POSITION_INTELLECT = 2; // 排序的位置

    // 资源文件夹
    public static final String BASE_PATH = Environment.getExternalStorageDirectory().getPath() + "/canteen";
    // 附件文件夹
    public static final String ATTACHMENT_PATH = BASE_PATH + "/attachment";

    public static final String USER = "user";
    public static final String SEARCHES = "searchs";
    public static final String BALANCE = "balance";
    public static final String INTEGRAL = "integral";
    public static final String LOGIN_TYPE = "loginType"; // 0 : 个人中心登录 1 : 退出登录
    public static final String VERIFY_TYPE = "verifyType"; // 0：重置密码 1：换绑手机
    public static final String NOTICE_TYPE = "noticeType"; // 0：系统通知 1：活动福利 2：分享故事 3：动态

    public static final String IS_FIRST_IN = "isfirstin"; // 是否是第一次打开此应用

    // 用户
    public static final String UID = "uid";
    public static final String NICKNAME = "nickName";
    public static final String FACE_URL = "faceUrl";
    public static final String REAL_NAME = "realName";
    public static final String PHONE = "phone";
    public static final String PASSWORD = "password";
    public static final String TOKEN = "token";
    public static final String COUPONCOUNT = "couponcount";//优惠券数量
    public static final String SEARCH_KEY_WORDS = "search_key_words";
}
